package cn.redsoft.wechatapi.msg.resp.passivity;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("xml")
public class ImageResponseMsg extends PassivityResponseMsg {

	@XStreamAlias("Image")
	private Image image;

	public ImageResponseMsg() {
		this.msgType = PassivityResponseMsgType.IMAGE;
	}

	public Image getImage() {
		return image;
	}

	public void setImage(Image image) {
		this.image = image;
	}

	@Override
	public String toString() {
		return "ImageResponseMsg [mediaId=" + image + ", toUserName="
				+ toUserName + ", fromUserName=" + fromUserName
				+ ", createTime=" + createTime + ", msgType=" + msgType + "]";
	}

	@XStreamAlias("Image")
	public static class Image {

		@XStreamAlias("MediaId")
		private String mediaId;

		public Image() {
		}

		public String getMediaId() {
			return mediaId;
		}

		public void setMediaId(String mediaId) {
			this.mediaId = mediaId;
		}

		@Override
		public String toString() {
			return "MediaId [MediaId=" + mediaId + "]";
		}

	}
}
